#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT(lafka, 1.0.0, chinesejie@qq.com)
AC_CONFIG_SRCDIR([main/main.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
#AC_CONFIG_MACRO_DIR([m4])

# Checks for programs.
AC_PROG_CC
# for static libraries
AC_PROG_RANLIB
# for dynamic libraries
#AC_PROG_LIBTOOL
#LT_INIT

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([gettimeofday localtime_r memset mkdir strerror])

AC_CONFIG_FILES([Makefile
                 main/Makefile
                 slog/Makefile
                 ])
AC_OUTPUT
